package com.itheima.demo01Lambda;

public class Demo01LambdaIntro {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            public void run() {
                System.out.println("新线程执行代码啦");
            }
        }){

        }.start();

        //体验Lambda表达式
        new Thread(()-> System.out.println("Lambda表达式执行啦")).start();
    }
}
